package cn.justweb;

import java.util.ArrayList;

public class Demo {
    public static void main(String[] args) {
        ArrayList <User> list = new ArrayList();
        User user1 = new User("zs1", "111111");
        User user2 = new User("zs2", "222222");
        User user3 = new User("zs3", "333333");
        list.add(user1);
        list.add(user2);
        list.add(user3);
        for (int i = 0; i < list.size(); i++) {
            User user = list.get(i);
            System.out.println(user);
        }
    }
}
